package com.test.mytest.saolei.my.swt;

public class Data {
    int property;
    int minenum;
    int rightclicknum;
    int leftclicknum;
    private String image;
    public Data() {
        this.property = 0;//not mine;
        minenum = 0;//no mine;
        rightclicknum = 0;//not clicked
        leftclicknum = 0;
        image = null;
    }
    public boolean isMine() {
        return property == 1;
    }
    public int getMineNum() {
        return minenum;
    }
    public int getRightClickNum() {
        return rightclicknum;
    }
    public int getLeftClickNum() {
        return leftclicknum;
    }
    public void setImage(String image) {
        this.image = image;
    }
    public void resposeRightClick() {
        rightclicknum = (rightclicknum + 1) % 3;
    }
    public String getImage() {
        return image;
    }
    public void responseLeftClick() {
        leftclicknum = 1;
    }
    public void setMineNum() {
        minenum++;
    }
}